//app.js
var util=require('./utils/util.js')
App({
  // 请求封装
  $http:{
    requestpost1: util.requestpost1,
    requestpost2: util.requestpost2,
    requestget: util.requestget
  },
  getDate:{
    formatime: util.formatime,
    formatime1: util.formatime1
  },
  onLaunch: function () {
    // 展示本地存储能力
    var logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)
    console.log(this.globalData.statusBarHeight);
    
    
  },
  globalData: {
    userInfo: null,
    // 导航栏高度
    statusBarHeight: wx.getSystemInfoSync()['statusBarHeight']
  }
})